<form xmlns:py="http://purl.org/kid/ns#"
      name="${name}"
      action="${action}"
      method="${method}"
      class="tableform"
      py:attrs="form_attrs"
    >
    <h3><center> ${title} </center></h3>


    <div py:for="field in hidden_fields"
         py:replace="field.display(value_for(field), **params_for(field))"
        />
        <table style='width:100%;' width="100%" border="1" cellspacing="0" cellpadding="2" py:attrs="table_attrs">
            <tr>
 <th py:for='header in column_headers'>
      ${header}
 </th>                 
            </tr>
 
        
            <tr py:for="i in range(0,row_count)"
                class="aa"
            >
           <td  py:for="j in range(0,col_count)">
            <?python
                  field = fields[row_count*j+i]
               ?>
                    <span py:replace="field.display(value_for(field), **params_for(field))" />
                    <span py:if="error_for(field)" class="fielderror" py:content="error_for(field)" />
                    <span py:if="field.help_text" class="fieldhelp" py:content="field.help_text" />
                </td>
            </tr>
            <tr >
                <td colspan="${col_count}" align='center'><input type='button' onclick='cancel();' value='Cancel'/>
               ${submit(submit_text, attrs=btn_attrs)} </td>
            </tr>
        </table>
    </form>
 